package com.cqut.forum.aspect.imp;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

import com.cqut.forum.aspect.LevelCheckAspect;

@Aspect
@Component
public class LevelCheckAspectImp implements LevelCheckAspect {
	//public class LevelCheckAspectImp{
	
	@Before("execution(* com.cqut.forum.service.imp.*.*(..))")
	public void check() {
//	@AfterReturning(returning="re",pointcut="execution(public * com.cqut.forum.service.imp..*(..))")

		System.out.println("=============service begin=======================");
	}
	@After("execution(* com.cqut.forum.dao.imp.*.*(..))")
	public void dao() {
//	@AfterReturning(returning="re",pointcut="execution(public * com.cqut.forum.service.imp..*(..))")
		System.out.println("==============dao after======================");
	}

}
